package com.house.house.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name="t_eatate")
public class Eatate {
	@NotNull
	private Long eatateId;
	private String eatateNo;
	private String eatateName;
	private String city;     
	private String cityProper;   //城区
	private String District;     //片区
	private String eatateType;   
	private String detailAddress;
	private String price;      //均售价
	private String manageFee;
	private String buildArea;
	private int totalRooms;     //总户数
	private String developer;   //开发商
	private String developerPhone;
	private String propertyCompany;   //物业公司
	private String proCompanyPhone;
	private byte[] pictures;
		
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getEatateId() {
		return eatateId;
	}
	
	public String getEatateNo() {
		return eatateNo;
	}
	public String getEatateName() {
		return eatateName;
	}
	public String getCity() {
		return city;
	}
	public String getCityProper() {
		return cityProper;
	}
	public String getDistrict() {
		return District;
	}
	public String getEatateType() {
		return eatateType;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public String getPrice() {
		return price;
	}
	public String getManageFee() {
		return manageFee;
	}
	public String getBuildArea() {
		return buildArea;
	}
	public int getTotalRooms() {
		return totalRooms;
	}
	public String getDeveloper() {
		return developer;
	}
	public String getDeveloperPhone() {
		return developerPhone;
	}
	public String getPropertyCompany() {
		return propertyCompany;
	}
	public String getProCompanyPhone() {
		return proCompanyPhone;
	}
	@Lob
	public byte[] getPictures() {
		return pictures;
	}
	public void setEatateId(Long eatateId) {
		this.eatateId = eatateId;
	}
	public void setEatateNo(String eatateNo) {
		this.eatateNo = eatateNo;
	}
	public void setEatateName(String eatateName) {
		this.eatateName = eatateName;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setCityProper(String cityProper) {
		this.cityProper = cityProper;
	}
	public void setDistrict(String district) {
		District = district;
	}
	public void setEatateType(String eatateType) {
		this.eatateType = eatateType;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public void setManageFee(String manageFee) {
		this.manageFee = manageFee;
	}
	public void setBuildArea(String buildArea) {
		this.buildArea = buildArea;
	}
	public void setTotalRooms(int totalRooms) {
		this.totalRooms = totalRooms;
	}
	public void setDeveloper(String developer) {
		this.developer = developer;
	}
	public void setDeveloperPhone(String developerPhone) {
		this.developerPhone = developerPhone;
	}
	public void setPropertyCompany(String propertyCompany) {
		this.propertyCompany = propertyCompany;
	}
	public void setProCompanyPhone(String proCompanyPhone) {
		this.proCompanyPhone = proCompanyPhone;
	}
	public void setPictures(byte[] pictures) {
		this.pictures = pictures;
	}
	

	
}
